/* Konpei (warps to Bodyguard room)
   By buya
*/
void npc(Player @player, NPC @npc) {
int state = npc.getState();
if(state == 0) {
if(player.getItemAmount(4000138) == 0) {
npc.addText("So you've made it here. Not bad. You'll be taking on the boss now! I'm concerned as to whether you take on the mighty boss with your abilities ... don't get me wrong, our Boss couldn't handle her either. If you, by any chance, take down the boss and bring back her comb with you, then I'll take you to the next stage. ");
npc.sendOK();
} else {
npc.addText("Hey hey! That item you have there...isn't that our boss's comb!? Holy cow! I knew it! As soon as I saw you, I knew you would be the one defiant enough to take on the Boss. Are you sure? He's not going to give up without a fight--the evil spirit within him will ensure that. Do you want to take on the Boss?");
npc.sendYesNo();
}
if(npc.getSelected() == YES) {
npc.addText("Are you sure you're going to enter this room? Just remember, you can't stay here forever, and if you place our boss's comb on top of the treasure chest, the thugs will pounce on you, so be careful!");
npc.sendYesNo();
} else {
npc.addText("Really? Then let me know if you ever change your mind.");
npc.sendNext();
npc.end();
}
if(npc.getSelected() == YES) {
player.changeMap(801040100);
} else {
npc.addText("Really? Then let me know if you ever change your mind.");
npc.sendNext();
}
npc.end();
}
}